var http = require('http');
var util = require('util')
http.createServer(function(req, res){
    console.dir(req.headers)
    res.write('version: ' + req.httpVersion + '\r\n')
    res.write('method: ' + req.method + '\r\n')
    res.end('headers:' + util.inspect(req.headers))
}).listen(1337);
console.log('simple server started...')